package com.Dome;

/*
 *      测试类
 *
 * */
public class TeacherTest {
    //程序的主入口,main
    public static void main(String[] args) {

        //带参构造创建对象,并赋值
        Teacher t = new Teacher("张三",10);


        //空参构造,创建对象,配合set方法完成赋值
        Teacher t2 = new Teacher();
        t2.setName("李四");
        t2.setAge(19);
    }
}
